home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / grap_cad / cim1 / install.bat < prev    next >
Encoding:
DOS Batch File  |  1991-05-13  |  4.4 KB  |  110 lines

  1. echo off
  2. rem * INSTALL.BAT (for CIMplicity)
  3. rem *   This batch file: (1) makes a directory named \%3 on %2:, (2) copies
  4. rem *   files from %1: to that directory, then (3) expands CIM1 and CIM2.
  5. cls
  6. if "%1" == "?" goto USAGE
  7. if "%1" == "" A:INSTALL A C CIM
  8. if "%3" == "" goto USAGE
  9. if "%3" == "\CIM" goto USAGE
  10. if "%3" == "\CIM2" goto USAGE
  11. if "%1" == "a" goto AOK
  12. if "%1" == "b" goto AOK
  13. if "%1" == "A" goto AOK
  14. if "%1" == "B" goto AOK
  15. goto USAGE
  16. :AOK
  17. if "%2" == "c" goto COK
  18. if "%2" == "d" goto COK
  19. if "%2" == "e" goto COK
  20. if "%2" == "f" goto COK
  21. if "%2" == "C" goto COK
  22. if "%2" == "D" goto COK
  23. if "%2" == "E" goto COK
  24. if "%2" == "F" goto COK
  25. goto USAGE
  26. :COK
  27. if "%4" == "CONT" goto CONTIN
  28. echo ------------------------------- Verify --------------------------------
  29. echo ( Note: For usage instructions for this procedure, type:  A:INSTALL ? )
  30. echo This program is about to install CIMplicity from the floppy disk in the
  31. echo %1: drive onto the fixed disk in a directory named %2:\%3.  The directory
  32. echo will be created if it does not already exist.  Requirements are:
  33. echo              EGA or VGA card and compatible color monitor
  34. echo                       640K or more of main memory
  35. echo                         3 MB of free disk space
  36. echo         A standard mouse (or tablet with a mouse-type driver)
  37. echo If it is okay to continue with the installation, hit the [Enter] key...
  38. echo To terminate the installation process, hold down [Ctrl] and hit [C]...
  39. pause
  40. cls
  41. md %2:\%3                                   >NUL
  42. cls
  43. echo --------- Creating Directory, Copying INSTALL to it, Chaining ---------
  44. cd %2:\%3                                   >NUL
  45. copy %1:INSTALL.BAT %2:\%3                  >NUL
  46. if NOT EXIST %2:\%3\INSTALL.BAT goto BOMBOUT
  47. if "%4" == "" %2:\%3\INSTALL %1 %2 %3 CONT  >NUL
  48. %4 %2:\%3\INSTALL %1 %2 %3 CONT             >NUL
  49. cls
  50. echo --------------------------- DOS Won't Chain ---------------------------
  51. echo The INSTALL program is having trouble chaining to itself, after having
  52. echo copied itself to the destination directory. (%2:\%3)  This may be due
  53. echo to the use of a DOS variant such as DR DOS.  If this is the case, then
  54. echo issue the command line differently:
  55. echo   a:INSTALL a c cim call
  56. echo Where:
  57. echo   drive 'a' the the floppy drive containing the files...
  58. echo   drive 'c' is the fixed disk to be installed onto...
  59. echo   directory 'cim' is the name of the directory to be created.
  60. echo   'call' is the OS command to run a batch file from within a batch file.
  61. goto DONE
  62. :BOMBOUT
  63. cls
  64. echo -------------------------- Error In Chaining --------------------------
  65. goto DONE
  66. rem  ======================= Installation Begins Here =======================
  67. :NEXTDISK
  68. echo -------------------- Insert Next Disk, Hit [Enter] --------------------
  69. pause
  70. :CONTIN
  71. cls
  72. echo -------------------- Copying Files, Please Wait... --------------------
  73. copy %1:*.* %2:\%3                          >NUL
  74. if NOT EXIST %1:LAST.DSK goto NEXTDISK
  75. %2:                                         >NUL
  76. cls
  77. echo ------------------- Expanding Files, Please Wait... -------------------
  78. if EXIST %2:\%3\CIM.EXE del %2:\%3\CIM.EXE  >NUL
  79. CIM2 < YYYYYYYY                             >NUL
  80. del %2:\%3\CIM2.exe                         >NUL
  81. CIM1 < YYYYYYYY                             >NUL
  82. del %2:\%3\CIM1.exe                         >NUL
  83. if EXIST %2:\%3\CIM.EXE goto OKAY
  84. cls
  85. echo ------------------------ Insufficient Disk Space ----------------------
  86. goto DONE
  87. :OKAY
  88. cls
  89. echo ----------------------------- Installed -------------------------------
  90. echo 1. CIMplicity is installed in a directory named %2:\%3
  91. echo 2. To register your software, type REGISTER (You MUST register)
  92. echo 3. Please review the file README.TXT before going on
  93. echo 4. Type MANUAL P to print the user's manual on LPT1
  94. echo 5. After authorization, you may run CIMplicity by typing CIM
  95. echo 6. System requirements: EGA 640x350 16 col, Mouse, and 640K memory
  96. echo ----------------------------- Thank You -------------------------------
  97. pause
  98. goto DONE
  99. :USAGE
  100. echo To install CIMplicity, type:
  101. echo   a:INSTALL a c cim
  102. echo Where:
  103. echo   drive 'a' the the floppy drive containing the files...
  104. echo   drive 'c' is the fixed disk to be installed onto...
  105. echo   directory 'cim' is the name of the directory to be created.
  106. echo Default:
  107. echo   A:INSTALL A C CIM
  108. echo ----------------------------- Try Again -------------------------------
  109. :DONE
  110.